package config

import (
    `injection/ch01_02_code_smells/circular_dependencies/payment`
    `errors`
)

// Config defines the JSON format of the config file  CONFIG定义配置文件的JSON格式
type Config struct {
    // Address is the host and port to bind to
    // default 0.0.0.0:8080
    Address string

    // defaultCurrency is the default currency of the system  默认货币是系统的默认货币

    DefaultCurrency payment.Currency
}

// Load will load the JSON config from the file supplied 加载将从提供的文件加载JSON配置。
func Load(fname string) (*Config, error) {

    // todo : load currency from file
    return nil, errors.New("未实现")

}
